﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class deadline : MonoBehaviour
{
    // Start is called before the first frame update
    public static deadline Create(Vector3 pos)
    {
        GameObject prefab = Resources.Load<GameObject>("deadline");
        GameObject deadlineSprite = (GameObject)Instantiate(prefab, pos, Quaternion.identity);
        deadline deadline = deadlineSprite.AddComponent<deadline>();
        //didnot shoot fish
        Destroy(deadline, 2.0f);
        return deadline;

    }
}
